Fix Eshell tests on MS-Windows
authorEli Zaretskii <eliz@gnu.org>
Sun, 9 Jun 2024 07:56:39 +0000 (10:56 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 9 Jun 2024 07:56:39 +0000 (10:56 +0300)
commitf869f1ffc2ef0e126e633553e6b4c38bee90f7f8
treed7fc76046664b0c8b83399e25f9c34369f8984b8
parent8253228d55b368ad7ea4d66d802059e8afff2b12
Fix Eshell tests on MS-Windows

* lisp/eshell/esh-util.el (eshell-get-path): Don't add "." if it
is already there.

* test/lisp/eshell/esh-var-tests.el
(esh-var-test/path-var/preserve-across-hosts): Skip on MS-Windows.
(esh-var-test/path-var/set, esh-var-test/path-var/set-locally):
Quote the PATH value, for MS-Windows.
* test/lisp/eshell/esh-util-tests.el (esh-util-test/path/get): No
need to add ".": it is already done by 'eshell-get-path'.
* test/lisp/eshell/esh-proc-tests.el
(esh-proc-test/kill-pipeline): Accept empty string as valid
output.
(esh-proc-test/sigpipe-exits-process): Skip on MS-Windows: no
SIGPIPE.
(esh-proc-test/emacs-command): Quote correctly for MS-Windows.
* test/lisp/eshell/em-unix-tests.el
(em-unix-test/compile/interactive): Fix test on MS-Windows.
* test/lisp/eshell/em-script-tests.el (em-script-test/batch-file):
Skip on MS-Windows.
* test/lisp/eshell/eshell-tests-helpers.el
(eshell-command-result--equal): Compare strings (file names)
case-insensitively on MS-Windows.
lisp/eshell/esh-util.el
test/lisp/eshell/em-script-tests.el
test/lisp/eshell/em-unix-tests.el
test/lisp/eshell/esh-proc-tests.el
test/lisp/eshell/esh-util-tests.el
test/lisp/eshell/esh-var-tests.el
test/lisp/eshell/eshell-tests-helpers.el